package com.supreme.commonmybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supreme.commonmybatis.annotation.RangeQuery;
import com.supreme.commonmybatis.annotation.SqlFilter;
import com.supreme.commonmybatis.annotation.SqlParam;
import com.supreme.commonentity.mysql.primary.MBTest;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TestMapper extends BaseMapper<MBTest> {

    @RangeQuery(queryValues = "1,3,5")
    @SqlFilter(filterTest = true, filterKey = "id", longValue = 6)
    List<MBTest> selectTestList(@SqlParam(rangeKey = "deptId") MBTest test);

    int batchInsertTest(List<MBTest> testList);
}
